{extend name="public:layout" /}
{block name="title"}验证器代码生成{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('Moudle/index')}"> 模型列表</a></li>
                <li><a href="{:url('index',['mid'=>$moudleInfo['mid']])}">代码生成列表</a></li>
                <li class="active">{$moudleInfo.moudle_name}验证器代码生成</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="alert alert-warning">
                <p>{$infoMsg}</p>
            </div>
<pre class="pre-scrollable">
{$content}
</pre>
            <form method="post" class="form-horizontal" id="form">
                <input type="hidden" name="mid" value="{$moudleInfo.mid}"/>
                <input type="hidden" name="filename" value="{$filename}"/>
                <input type="hidden" name="filepath" value="{$filepath}"/>
                <div class="row">
                    <button class="btn btn-primary btn-block btn-lg" type="button" id="btnSub" {eq name="moudleInfo.validate_tpl" value="2"} disabled{/eq}>生成验证器
                    </button>
                    <span id="validError"></span>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    $(function(){
        ajaxSubForm('#btnSub');
    });
</script>
{/block}